﻿// -----------------------------------------------------------------------
// <copyright file="ICourseService.cs" company="AGR">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace AGR.Services.Course
{
    using System;
    using System.Collections.Generic;
    using AGR.Model;
    using System.Linq.Expressions;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public interface ICourseService : IDisposable
    {
        Course GetCourse(string courseCode);
        Course GetCourse(Expression<Func<Course, bool>> predicate);

        IList<Course> GetAllCourses();
        IList<Course> GetAllCourses(Expression<Func<Course, bool>> predicate);

        ActionResult AddCourse(Course course);
        ActionResult UpdateCourse(Course course);
        ActionResult DeleteCourse(string courseCode);
        ActionResult DeleteCourse(Expression<Func<Course, bool>> predicate);
    }
}
